Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling Refactor for Contacts Index #102

Merged
merged 4 commits into from
Feb 11, 2025
Merged

Conversation

SmilodonP
Copy link
Collaborator

@SmilodonP SmilodonP commented Feb 11, 2025

Type of Change

  • [ x] styling 🎨
  • [ x] refactor πŸ§‘β€πŸ’»

Description

  • button sizing issues
  • removes color of alternating lines in index
  • contact's name no longer gets cut off early
  • bottom border of each contact now runs the complete length
  • minor alignment fixes
  • adds low key responsiveness to elements

Issues:

  • does not match mock up perfectly
    • search and button could both be larger and/or taller
    • h1 could be a touch smaller

Motivation and Context

Issue

Related Tickets

closes sub-issue #85

Images:

Mock Up: image

Screenshot of page now: Screenshot 2025-02-10 at 7 00 12β€―PM

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

A multitude of minor corrections to existing tailwind.css.
Fixes:
- button sizing issues
- removes color of alternating lines in index
- contact's name no longer gets cut off early
- bottom border of each contact now runs the complete length
- minor alignment fixes
- adds low key responsiveness to elements

[Ticket: 85]
@SmilodonP SmilodonP marked this pull request as draft February 11, 2025 02:08
…yling/contacts-index

Pulled main branch to check for merge conflicts.
@SmilodonP SmilodonP marked this pull request as ready for review February 11, 2025 02:16
<Link to={`/contacts/${data.id}`}>
<td className="p-4 border-b truncate max-w-[8vw]">
<td className="p-4 text-gray-700">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for changing this. It was really hard to see the name because it was always showing only part of the name. For example: Jane Sm... or Jan...

It was really hard to read.

@@ -342,7 +342,7 @@ describe("Sad Paths - Contacts Page", () => {
cy.get("input[type='search']").should(
"have.attr",
"placeholder",
"Search Contacts..."
"πŸ” Search Contacts"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the πŸ” doesn't change much but it makes the search bar more professional looking. Great addition!

@bwillett2003
Copy link
Collaborator

I like the responsiveness when shrinking the screen. Everything is still very readable and nothing is overlapping.

@wally-yawn
Copy link
Collaborator

Overall I think these changes look great, one comment. Your PR has a check for My change requires a change to the documentation, but no check for I have updated the documentation accordingly. Is that documentation going to be updated in a subsequent issue?

@SmilodonP
Copy link
Collaborator Author

@wally-yawn I am planning on updating the documentation once I have all of the elements that are commonly used totally standardized across the different pages. If you think that I should take care of that first I would be more than happy to.

@wally-yawn
Copy link
Collaborator

@wally-yawn I am planning on updating the documentation once I have all of the elements that are commonly used totally standardized across the different pages. If you think that I should take care of that first I would be more than happy to.

Sounds good, I'll approve this and merge it.

@wally-yawn wally-yawn merged commit b0684de into main Feb 11, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Contacts Index
3 participants